package com.gdcp.mapper;

import com.gdcp.beans.Order;
import com.gdcp.beans.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderMapper {

    List<Order> findPageBreakByCondition(Map<String, Object> param);

    List<Order> findPageBreakByConditionByShopId();

    int insert(Order banner);

    List<Order> queryAllById(@Param(value = "user_id") Integer uid);

    int removeByPrimaryKey(Integer id);

    int updateByPrimaryKey(Order order);

    Order getInformation(Integer id);

    List<Order> searchInformation(Map<String, Object> param);
}
